$borderRadius: 4px;
$width: 180px;
$height: 120px;

.upload-content {
    position: relative;

    .upload-box {
        .avatar-uploader {
            display: flex;
            align-items: center;
            gap: 16px;

            .el-upload-list--picture-card {
                display: flex;
                flex-wrap: nowrap;
                gap: 16px;

                .el-upload-list__item {
                    margin: 0;
                    width: 180px;
                    height: 120px;
                }
            }

            .el-upload {
                order: 1;
                box-sizing: border-box;
                width: $width;
                height: $height;
                background-color: #f9f9f9;
                border: 1px dashed #eaeaea;
                border-radius: $borderRadius;
                cursor: pointer;
                position: relative;
                overflow: hidden;

                &:hover {
                    border-color: #ff6b00;
                }
            }

            .upload-btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;

                .el-icon.avatar-uploader-icon {
                    font-size: 30px;
                    color: #999;
                    text-align: center;
                }

                .upload-btn-label {
                    font-size: 14px;
                    color: #999;
                    margin-top: 10px;
                    white-space: nowrap;
                }
            }

            .preview-image {
                order: 0;
                position: relative;
                width: 100%;
                height: 100%;

                .el-image {
                    width: 100%;
                    height: 100%;
                    border-radius: $borderRadius;
                }

                & > .el-icon {
                    position: absolute;
                    right: 2px;
                    top: 2px;
                    z-index: 9;
                    font-size: 18px;
                    padding: 4px;
                    border-radius: 50%;
                    background-color: #d1d1d1;
                    color: #fff;

                    &:hover {
                        cursor: pointer;
                        background-color: #c3c3c3;
                    }
                }
            }
        }

        .hidden-upload {
            .el-upload {
                display: none;
            }
        }

        .disabled {
            .el-upload {
                &:hover {
                    cursor: not-allowed;
                    border-color: #eaeaea;
                }
            }
        }

        .upload-tips {
            margin-top: 8px;
            font-size: 12px;
            color: #999;
            line-height: 1.6;
            white-space: nowrap;
        }
    }

    .upload-placeholder {
        width: 100%;
        height: auto;
    }
}

.upload-content-singla {
    min-width: 120px;
    max-width: 180px;
    width: 100%;
    height: 100%;

    .upload-box {
        width: 100%;
        height: 100%;
        position: absolute;

        .avatar-uploader {
            width: 100%;
            height: 100%;

            .el-upload-list--picture-card {
                width: 100%;
                height: 100%;

                .el-upload-list__item {
                    width: 100%;
                    height: 100%;
                }
            }

            .el-upload {
                width: 100%;
                height: 100%;
            }
        }
    }

    .upload-placeholder {
        width: 100%;
        height: auto;
    }
}
